package project.youkumenu.base;

import android.annotation.SuppressLint;
import android.app.Application;
import android.content.Context;

/**
 * Created by lgs on 2018/3/8.
 */

public class BaseApp extends Application {


    @SuppressLint("StaticFieldLeak")
    private static Context mContext;

    @Override
    public void onCreate() {
        super.onCreate();
        mContext = getApplicationContext();

    }

    /**
     * 获取上下文
     * @return Context
     */
    public static Context getBaseAppContext() {
        return mContext;
    }
}
